<include file="Public:head" title='工时审核' />
<script src="__PUBLIC__/js/other/validate.js"></script>
<script>
    $(function() {
        $("#form").validate({
            errorPlacement: function(error, element) {
                var error_td = element.parent('td');
                error_td.find('label.error').hide();
                error_td.append(error);
            },
            rules: {
               
            },
            messages: {
                
            }
        });
        $.getScript("__PUBLIC__/js/plugins/kind2/kindeditor-min.js", function() {
            KindEditor.basePath = '__PUBLIC__/js/plugins/kind2/';
            KindEditor.create('textarea[id="content"]');
        });
    })

</script>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <include file="Public:left" />
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="__APP__/{$Think.MODULE_NAME}">首页</a></li>
                    <li><a href="{:U('Hours/lists')}">工时管理</a></li>
                    <li class="active">工时审核</li>
                </ul>
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <h3 class="header smaller lighter blue">工时审核</h3>

                                <form action="{:U('Hours/check_detail_post')}" method="POST" id="form" enctype="multipart/form-data">
                                    <table class="table table_detail">
                                        <tbody>
                                            <tr>
                                                <td class="td_left">当前日期</td>
                                                <td>
                                                    <strong style="font-size: 16px">{$today}</strong>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">工作内容</td>
                                                <td>
                                                    {$detail.content|htmlspecialchars_decode}
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">工作时长</td>
                                                <td>
                                                     {$detail.hour}时
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">审核状态</td>
                                                <td>

                                                    <label>
                                                        <input class="ace" type="radio"  name="status" value='0' {$detail.status|getEqual=###,0,'checked'} autocomplete='off'/>
                                                        <span class="lbl"> 待审核</span>
                                                    </label>
                                                    <label>
                                                        <input class="ace" type="radio"  name="status" value='1' {$detail.status|getEqual=###,1,'checked'} autocomplete='off'/>
                                                        <span class="lbl"> 审核通过</span>
                                                    </label>
                                                    <label>
                                                        <input class="ace" type="radio"  name="status" value='-1' {$detail.status|getEqual=###,-1,'checked'} autocomplete='off'/>
                                                        <span class="lbl"> 拒绝</span>
                                                    </label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">审核备注</td>
                                                <td>
                                                    <textarea class="textarea" name="check_info" id="check_info" autocomplete="off" style="width:400px;height:200px">{$detail.check_info}</textarea>
                                                </td>
                                            </tr>



                                            <tr>
                                                <td class="td_left"></td>
                                                <td>
                                                    <input type='hidden' name='id' value='{$Think.get.id}'/>
                                                    <button class="btn btn-info btn-sm" type="submit">
                                                        <i class="icon-ok bigger-110 "></i>
                                                        保 存
                                                    </button>
                                                    <button class="btn btn-sm reset" type="button" onclick="goUrl(-1)">
                                                        <i class="icon-undo bigger-110"></i>
                                                        返 回
                                                    </button>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <include file="Public:logo_upload" />
    </div>
</div>
<include file="Public:foot" />
